﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    AutoEventWireup="true" CodeFile="ProviderCarClaimExpInfo.aspx.cs" Inherits="Provider_CarInsurance_ProviderCarClaimExpInfo"
    Title="Car Claim Value Info" %>
<%@ Register Src="~/controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<script src="~/controls/CE_Date.js" type="text/javascript"></script>
    <div class="provider_inner">
        <h1>
            Add/Edit Claim Experience
            <asp:Label ID="lblClaimInfoId" runat="server" Text="0" Visible="false"></asp:Label>
        </h1>
        <fieldset>
            <dl>
                <dt>
                    <label>
                        Claim Count</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlClaimCount" runat="server" Style="text-align: left">
                        <asp:ListItem Value="-1">Select</asp:ListItem>
                        <asp:ListItem>0</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvClaimCount" runat="server" ControlToValidate="ddlClaimCount"
                        Display="Dynamic" ErrorMessage="Select claim count." InitialValue="-1" ValidationGroup="claim"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Amount From</label></dt>
                <dd>
                    <asp:TextBox ID="txtFromValue" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvCoverageRate0" runat="server" ControlToValidate="txtFromValue"
                        Display="Dynamic" ErrorMessage="Enter value from." ValidationGroup="claim"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revCoverageRate0" runat="server" ControlToValidate="txtFromValue"
                        ErrorMessage="From value is not valid." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"
                        ValidationGroup="claim"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Amount To</label></dt>
                <dd>
                    <asp:TextBox ID="txtToValue" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvCoverageRate" runat="server" ControlToValidate="txtToValue"
                        Display="Dynamic" ErrorMessage="Enter value to." ValidationGroup="claim"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revCoverageRate" runat="server" ControlToValidate="txtToValue"
                        ErrorMessage="To value is not valid." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"
                        ValidationGroup="claim"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Rate</label></dt>
                <dd>
                    <asp:TextBox ID="txtClaimRate" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvCoverageRate1" runat="server" ControlToValidate="txtClaimRate"
                        Display="Dynamic" ErrorMessage="Enter claim rate." ValidationGroup="claim"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revCoverageRate1" runat="server" ControlToValidate="txtClaimRate"
                        ErrorMessage="Claim rate value is not valid." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"
                        ValidationGroup="claim"></asp:RegularExpressionValidator>
                </dd>                
            </dl>
              <dl>
                <dt>
                    <label>
                        Schedule Rate Update</label></dt>
                <dd>
                   <asp:RadioButtonList runat="server" ID="rdoEffectivity"  RepeatDirection="Horizontal" AutoPostBack="true" OnSelectedIndexChanged="EffectiveWhen">
                   <asp:ListItem Value="Yes">Yes</asp:ListItem>
                   <asp:ListItem Value="No">No</asp:ListItem>                   
                   </asp:RadioButtonList>
                  
                </dd>
            </dl>
            <div id="divNewRate" runat="server" visible="false">
             <dl>
                <dt>
                    <label>
                        Effectivity Date</label></dt>
                <dd>
                   <uc1:usrDate ID="usrEffectivityDate" ValidationGroup="claim" runat="server" IsNotLessThanToday="true" />
                  
                </dd>
            </dl>
            
             <dl>
                <dt>
                    <label>
                        New Rate</label></dt>
                <dd>
                    <asp:TextBox ID="txtNewRate" runat="server" MaxLength="5"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvNewRate" runat="server" ControlToValidate="txtNewRate"
                        ErrorMessage="Enter new rate." Display="Dynamic" ValidationGroup="claim"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revNewRate" runat="server" ControlToValidate="txtNewRate"
                        ErrorMessage="Rate is not valid." ValidationGroup="claim" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            </div>
            <dl>
                <dt>
                    <label>
                        Description</label></dt>
                <dd>
                    <asp:TextBox ID="txtDescription" runat="server" Width="350px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvCoverageRate2" runat="server" ControlToValidate="txtDescription"
                        Display="Dynamic" ErrorMessage="Require claim description." ValidationGroup="claim"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Status</label></dt>
                <dd>
                    <asp:CheckBox ID="chkStatus" runat="server" />
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Auth Code</label></dt>
                <dd>
                    <asp:TextBox ID="txtAuthCode" runat="server" TextMode="Password" MaxLength="12" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAuthCode" runat="server" ControlToValidate="txtAuthCode"
                        ErrorMessage="Enter auth code." ValidationGroup="claim"></asp:RequiredFieldValidator>
                </dd>
            </dl>
        </fieldset>
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" runat="server" ImageUrl="~/Provider/images/buttons/back1.gif" OnClick="ibtBack_Click"
                CssClass="left_btn" />
            <asp:ImageButton ID="ibtSubmit" runat="server" ImageUrl="~/Provider/images/buttons/submit1.gif"
                OnClick="ibtSubmit_Click" CssClass="float_btn" ValidationGroup="claim" />
            <asp:ImageButton ID="btnNew" CssClass="floatnext_btn" OnClientClick="return confirm('Are you sure to clear form?');"
                runat="server" ImageUrl="~/Provider/images/buttons/new1.gif" OnClick="btnNew_Click" />
            <asp:ImageButton ID="btnDelete" CssClass="floatnext_btn" OnClientClick="return confirm('Are you sure you want to remove this record?');"
                runat="server" ImageUrl="~/Provider/images/buttons/delete1.gif" OnClick="btnDelete_Click" />
        </fieldset>
        <asp:Label ID="lblMessage" runat="server" CssClass="successmsg"></asp:Label>
    </div>
</asp:Content>
